#include <bits/stdc++.h>
using namespace std;
#define int long long

signed main() {
	freopen("lost.in", "w", stdout);
	int n = 1000, k = 1000;
	cout << n << " " << k << "\n";
	mt19937 rnd(time(0));
	for (int i = 1; i < n; ++i) {
		if (rnd() & 1) cout << "L";
		else cout << "R";
	}
	cout << "\n";
	for (int i = 1; i <= n; ++i) {
		if (rnd() & 1) cout << "1";
		else cout << "0";
	}
	cout << "\n";
	for (int i = 1; i <= n; ++i) {
		if (rnd() & 1) cout << "1";
		else cout << "0";
	}
}
